package com.gitee.denger.mybatis.example.ext.annotation;

import com.gitee.denger.mybatis.example.ext.analytical.ExampleCriteriaValueImpl4Object;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.FIELD;

/**
 * 简单的mybatis Example 映射注解
 *
 * @author 登琼
 */
@Target({FIELD, ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@ExampleAnalytical(ExampleCriteriaValueImpl4Object.class)
public @interface AndGreaterThan {
    /**
     * 对应entity的字段
     *
     * @return
     */
    String property() default "";
}
